import { _decorator, Component, director, Input, input, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('StartUI')
export class StartUI extends Component {
    start() {
        input.on(
            Input.EventType.TOUCH_START,
            this.onStartButtonClicked,
            this
        )
    }

    update(deltaTime: number) {
        
    }

    onStartButtonClicked() {
        director.loadScene('Game')
    }
}

